﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace mozhi.smarterp.AuthorCenter.Permissions
{
    public class PermissionItemApiGrant : AggregateRoot<Guid>
    {
        public Guid PermissionItemId { get; set; }

        public Guid ApiMetadataId { get; set; }

        public PermissionItemApiGrant(Guid id, Guid permissionItemId, Guid apiMetadataId)
        {
            Id = id;
            PermissionItemId = permissionItemId;
            ApiMetadataId = apiMetadataId;
        }

        public void Change(Guid permissionItemId, Guid apiMetadataId)
        {
            PermissionItemId = permissionItemId;
            ApiMetadataId = apiMetadataId;
        }
    }
}
